import os
import argparse
import threading

from himpi_vdec import Vdec

def run():
	path = "rtsp://218.94.14.86:35010/live/34020000001320000010_34020000001320000001?expired=20250228095041"
	vdec_handle = Vdec(0, path)

	thread1 = threading.Thread(target=vdec_handle.vdec_send_frame)
	thread2 = threading.Thread(target=vdec_handle.get_frame)
	
	thread1.start()
	thread2.start()

	thread1.join()
	thread2.join()

if __name__ == "__main__":
	run()

